-- GENERATED SPELL FOR [Veteran Irondeep Explorer] --


function spell0_13541(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(15244,pUnit)
pUnit:RegisterEvent('Sorts_13541', 8341, 1)
end

function spell1_13541(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(14145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13541', 566, 1)
end

function spell2_13541(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(15242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13541', 3000, 1)
end

function Sorts_13541(pUnit, Event)
local choix_sorts_13541 = math.random(0, 2)
if choix_sorts_13541 == 0 then
pUnit:RegisterEvent('spell0_13541', 1, 1)
end
if choix_sorts_13541 == 1 then
pUnit:RegisterEvent('spell1_13541', 1, 1)
end
if choix_sorts_13541 == 2 then
pUnit:RegisterEvent('spell2_13541', 1, 1)
end
end

function mob13541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13541', math.random(1500, 3000), 1)
end

function mob13541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13541, 1, 'mob13541_Action')
RegisterUnitEvent(13541, 2, 'mob13541_Leave')
RegisterUnitEvent(13541, 3, 'mob13541_Kill')
RegisterUnitEvent(13541, 4, 'mob13541_Die')
